// 封装商品相关接口
import request from '@/utils/request'

export const getUserGoodsService = (params) => {
    return request({
        url: '/user/member/goods',
        method: 'GET',
        params
    })
}

export const addUserGoodsService = (data) => {
    return request({
        url: '/user/goods/add',
        method: 'POST',
        data
    })
}

export const updateGoodsService = (data) =>{
    return request({
        url: '/user/goods/update',
        method: 'PUT',
        data
    })
}

export const deleteGoodsService = (id) =>{
    return request({
        url: '/user/goods/delete?id='+id,
        method: 'DELETE'
    })
}